package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "关注")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatBookmarkFeign {

    @ApiOperation("商品关注和店铺关注列表")
    @PostMapping("/wechat/member/bookmarkmgr/collectmanagelist")
    String collectManageList(@RequestParam("jsonObject")JSONObject jsonObject, @RequestParam("start") Integer start, @RequestParam("pageSize") Integer pageSize);

    @PostMapping("/wechat/bookmarkmgr/ajaxupdateproductbookmark")
    String ajaxupdateproductbookmark(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @PostMapping("/wechat/member/bookmarkmgr/queryproductbookmark")
    String queryProductBookMark(@RequestParam("jsonObject")JSONObject jsonObject);
    @PostMapping("/wechat/bookmarkmgr/addproductbookmark")
    String addProductBookMark(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @PostMapping("/wechat/member/bookmarkmgr/ajaxdelbookmark")
    String ajaxDelBookMark(@RequestParam("jsonObject")JSONObject jsonObject);
    @PostMapping("/wechat/bookmarkmgr/ajaxupdateproductbookmarklist")
    String ajaxUpdateProductBookMarkList(@RequestParam("jsonObject")JSONObject jsonObject);
    @GetMapping("/wechat/member/bookmarkmgr/queryproductbookmarkcount")
    String queryProductBookMarkCount(@RequestParam("jsonObject")JSONObject jsonObject);
}
